#include <cstdio>
#include <algorithm>
#include <map>
#include <cstring>
#include <string>
#include <iostream>
using namespace std;
int n;
map<string,int> mp;
int main(void){
    scanf("%d",&n);
    int t=n;
    string tmp;
    while(t--){
        cin >> tmp;
        mp[tmp]++;
    }
    t=n;
    int ans=0;
    while(t--){
        cin >> tmp;
        if(mp[tmp]){
            mp[tmp]--;
        }
        else{
            ans++;
        }
    }
    printf("%d\n",ans);
    return 0;
}
